//
//  UserTabHandler.m
//  collection
//
//  Created by zhangjing on 9/16/12.
//  Copyright (c) 2012 Tsinghua University. All rights reserved.
//

#import "UserTabHandler.h"
#import "FeedCell.h"

@implementation UserTabHandler

- (id)init {
    
    self = [super init];
    
    return self;
}

- (void)dealloc {
    
    self.homepageRootController = nil;
    self.dataList = nil;
    
    [super dealloc];
}

#pragma mark - Implementation of UITableViewDataSource

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    
    return [self.dataList count];
}

- (UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    
    //    static NSString* latestInfoCellID = @"LatestInfoCell";
    FeedCell* cell = nil;
    
    return cell;
}

#pragma mark - Implementation of UITableViewDelegate

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    
    UITableViewCell* cell = [self tableView:tableView cellForRowAtIndexPath:indexPath];
    
    return cell.frame.size.height;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
}

@end
